#get_ext.py

def get_ext(fname):
    """Return the extension of file fname."""
    dot = fname.rfind('.')
    if (dot == -1):
        return('')
    else:
        return fname[dot + 1:]
